layui.use(["element", 'layer', 'form'], function () {
  var element = layui.element,
    form = layui.form,
    layer = layui.layer;
});
// AssetCode  资产代码  

var vm = new Vue({
  el: '#app',
  data: {
    ArrData: [
      {
        AssetClass:'1',
        AssetName:'1',
        amount:'100,000',
        proportion:'20%',
        price:'5.5%',
        CompanyName:'企业A',
        mark:''
      },
      {
        AssetClass:'2',
        AssetName:'2',
        amount:'200,000',
        proportion:'40%',
        price:'5%',
        CompanyName:'企业A',
        mark:''
      },
      {
        AssetClass:'3',
        AssetName:'3',
        amount:'150,000',
        proportion:'30%',
        price:'4.5%',
        CompanyName:'同业A',
        mark:''
      },
      {
        AssetClass:'4',
        AssetName:'4',
        amount:'40,000',
        proportion:'8%',
        price:'6%',
        CompanyName:'同业A',
        mark:''
      },
      {
        AssetClass:'5',
        AssetName:'5',
        amount:'10,000',
        proportion:'2%',
        price:'4%',
        CompanyName:'同业C',
        mark:''
      }
    ],
    ArrData2: [
      {
        AssetClass:'1',
        AssetName:'6',
        amount:'250,000',
        proportion:'36%',
        price:'5.5%',
        CompanyName:'企业B',
        mark:''
      },
      {
        AssetClass:'2',
        AssetName:'7',
        amount:'100,000',
        proportion:'14%',
        price:'5%',
        CompanyName:'企业B',
        mark:''
      },
      {
        AssetClass:'3',
        AssetName:'8',
        amount:'200,000',
        proportion:'29%',
        price:'4.5%',
        CompanyName:'同业B',
        mark:''
      },
      {
        AssetClass:'4',
        AssetName:'9',
        amount:'70,000',
        proportion:'10%',
        price:'6%',
        CompanyName:'同业B',
        mark:''
      },
      {
        AssetClass:'5',
        AssetName:'10',
        amount:'80,000',
        proportion:'11%',
        price:'4%',
        CompanyName:'同业C',
        mark:''
      }
    ],
    ArrData3: [
      {
        AssetClass:'1',
        AssetName:'1',
        amount:'100,000',
        proportion:'10%',
        price:'5.5%',
        CompanyName:'企业A',
        mark:''
      },
      {
        AssetClass:'2',
        AssetName:'2',
        amount:'200,000',
        proportion:'20%',
        price:'5%',
        CompanyName:'企业A',
        mark:''
      },
      {
        AssetClass:'3',
        AssetName:'3',
        amount:'400,000',
        proportion:'40%',
        price:'4.5%',
        CompanyName:'同业C',
        mark:''
      },
      {
        AssetClass:'4',
        AssetName:'4',
        amount:'100,000',
        proportion:'10%',
        price:'6%',
        CompanyName:'同业D',
        mark:''
      },
      {
        AssetClass:'5',
        AssetName:'5',
        amount:'50,000',
        proportion:'5%',
        price:'4%',
        CompanyName:'同业D',
        mark:''
      }
    ],
    totalVisible: false
  },
  mounted: function () {
    this.init()
  },
  methods: {
    init: function () {
      localStorage.setItem('navigation','<a href="#">首页</a><span lay-separator="">/</span><a href="">大类资产配置模型</a><span lay-separator="">/</span><a><cite>产品资产配置</cite></a>');
    },
    del:function(index,num){
      var ar = ['ArrData','ArrData2','ArrData3'];
      this.ar[num-1].splice(index, 1);
    },
    submitForm: function () {
      window.location.href = 'CPZCCCCX.html';
    }
  }
})